package com.ybxx.base.service.impl;

import java.util.List;

import com.ybxx.base.dao.ResidentsMemberDao;
import com.ybxx.base.model.ResidentsMember;
import com.ybxx.base.service.ResidentsMemberService;
import com.ybxx.core.command.QueryFilter;
import com.ybxx.core.dao.GenericDao;
import com.ybxx.core.service.impl.BaseServiceImpl;
import com.ybxx.core.web.paging.PagingBean;

public class ResidentsMemberServiceImpl extends
		BaseServiceImpl<ResidentsMember> implements ResidentsMemberService {
	private ResidentsMemberDao residentsMemberDao;
	public ResidentsMemberServiceImpl(ResidentsMemberDao dao) {
		super(dao);
		this.residentsMemberDao=dao;
		// TODO Auto-generated constructor stub
	}
	public ResidentsMember loadMember(String rcode){
		String hql="from ResidentsMember m where m.residents.rcode='"+rcode+"'";
		return (ResidentsMember)this.residentsMemberDao.findUnique(hql, null);
	}

}
